/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commands;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Lars
 */
public class CommandRepository {

    private static CommandRepository instance;
    private Map<Command> commands;


    private CommandRepository() {
        commands = new HashMap<Command>();
        initCommands();
    }

    public static CommandRepository getInstance() {
        if (instance == null) {
            instance = new CommandRepository();
        }
        return instance;
    }

    private void initCommands(){
        //commands.put("Insert", "Object");
    }

    private Command findCommand(String command){
        return (Command)commands.get(command);
    }
}
